<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<title>测试页面</title>

<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/component.css">
<link rel="stylesheet" href="css/custom-styles.css">
<link rel="stylesheet" href="css/font-awesome.css">
<link rel="stylesheet" href="css/topMenu.css">
<link rel="stylesheet" href="css/message_stl.css">

 
 <link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/font-awesome-ie7.css">
<style>
.top_logo_sty {width: 100px;
    float: left;
    margin-top: -20px;
    margin-left: 20px;}
	.img_stl{width:300px;}
.first_menu_stl{
color: #fff;
    font-size: 16px;
    background-image: none;
    border: none;
    font-family: 'source_sans_probold';
    text-transform: uppercase;
    padding: 15px 0px;
    padding-right: 40px;
	cursor:pointer;
}
.fn_hide{display:none;}

.first_menu_stl:hover{
	color:#827373;
}
.first_menu_stl:hover .second_menu_stl{
	
      display: block;
}
.first_title{
font-size: 20px;
    /* margin-top: -30px; */
    margin-bottom: 20px;
    color: black;
    font-weight: bold;
}
second_title{
font-size: 16px;
    font-weight: bold;
    color: black;}
</style>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>

</head>

<body>
<div class="header-wrapper">
  <div class="top_logo_sty"><img style="width:100px;" src=""/></div>
  <div class="site-name">
	<h1>测试页面</h1>
  </div>
</div>

  


<script src="js/jquery-1.9.1.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script src="js/echarts.min.js"></script>
<script src="js/china.js"></script>
<script src="js/lib.min.js"></script>
<script src="js/requirejsConfigObj.js"></script>
<script src="js/requirejs/2.1.17.js"></script>
<script src="js/common.min.js"></script>
<script src="js/self_fun.js"></script>
<script src="js/eacharts_invest.js"></script>
<script>
	
	$(function(){	
		getCompanyInfo();
		getPersonInfo();
		getNewsList();//新闻
	});
	function getNewsList(){
		//newsList
		var param = {strat:0,limit:10};   
		Util.ajax.postJsonSync('/homeNewsList', param, function(json,status){
            var obj = json.beans;
            if(status){
           	    for(var i=0;i<obj.length;i++){
           	    	
           	    }
           	    var html = "";
           	    $.each(obj,function(i,n){
           	    	html += '<li class=""><div class="user-info over_text_hide"><p class="news_title_stl" title="'+n.newsTitle+'"><a onclick="openNewsDtlInfo("'+n.newsId+'");">'+n.newsTitle+'</a></p><p class="news_data_stl">'+n.crtTime+'</p></div></li>';
           	    });
           	    $("#newsList").html(html);
            }else{
                Util.dialog.tips("查询失败,请重试");
            }
   	 });
	}
	//公司信息读入
	function getCompanyInfo(){
		var param = {};   
   	 Util.ajax.postJsonSync('/homeCompanyInfo', param, function(json,status){
            var obj = json.bean;
            if(status){
           	    $("#companyNm").text(obj.companyNm);
                //$("#companyAddrD").text(obj.companyAddr);
               // $("#companyTelnumD").text(obj.companyTelnum);
                //$("#companyCnttD").html(obj.companyCntt);
                $("#companyDesc").text(obj.companyDesc);
                if(!isDataNull(obj.picHeadFile)){
    	            $("#companyImg").attr('src',obj.picHeadFile);
                	//var imgH = "<img src='"+obj.picHeadFile+"' width='200' height='200'/>";
    	          //  $("#filePathsD").html(imgH);   
                }    	
            }else{
                Util.dialog.tips("查询失败,请重试");
            }
   	 });
	}
	//董事长信息读入
	function getPersonInfo(){
		var param = {};   
   	 Util.ajax.postJsonSync('/homePersonInfo', param, function(json,status){
            var obj = json.bean;
            if(status){
           	    $("#personNm").text(obj.personNm);
                //$("#companyAddrD").text(obj.companyAddr);
               // $("#companyTelnumD").text(obj.companyTelnum);
                //$("#companyCnttD").html(obj.companyCntt);
                $("#personDesc").text(obj.personDesc);
                if(!isDataNull(obj.headFile)){
    	            $("#personImg").attr('src',obj.headFile);
                	//var imgH = "<img src='"+obj.picHeadFile+"' width='200' height='200'/>";
    	          //  $("#filePathsD").html(imgH);   
                }    	
            }else{
                Util.dialog.tips("查询失败,请重试");
            }
   	 });
	}
	function openPersonInfo(){
		window.location.href="cltweb/page/personPage.html";
	}
	function openCompanyINfo(){
		window.location.href="cltweb/page/companyPage.html";
	}
    function checkNewsMore(){
    	window.location.href="cltweb/page/newsPage.html";
    }
	function openProducgtInfo(){
		window.location.href="cltweb/page/productPage.html";
	}
	function openInvestInfo(){
		window.location.href="cltweb/page/investPage.html";
	}
	$(document).ready(function(){	
		$(document).on("mouseenter", ".suspension .a", function(){
			var _this = $(this);
			var s = $(".suspension");
			var isService = _this.hasClass("a-service");
			var isServicePhone = _this.hasClass("a-service-phone");
			var isQrcode = _this.hasClass("a-qrcode");
			if(isService){ s.find(".d-service").show().siblings(".d").hide();}
			if(isServicePhone){ s.find(".d-service-phone").show().siblings(".d").hide();}
			if(isQrcode){ s.find(".d-qrcode").show().siblings(".d").hide();}
		});
		$(document).on("mouseleave", ".suspension, .suspension .a-top", function(){
			$(".suspension").find(".d").hide();
		});
		$(document).on("mouseenter", ".suspension .a-top", function(){
			$(".suspension").find(".d").hide(); 
		});
		$(document).on("click", ".suspension .a-top", function(){
			$("html,body").animate({scrollTop: 0});
		});
		$(window).scroll(function(){
			var st = $(document).scrollTop();
			var $top = $(".suspension .a-top");
			if(st > 400){
				$top.css({display: 'block'});
			}else{
				if ($top.is(":visible")) {
					$top.hide();
				}
			}
		});	
	});	
</script>
</body>
</html>
